# 添加示例程序
add_executable(market_data_example market_data_example.cpp)

# 链接库
target_link_libraries(market_data_example
    PRIVATE
        hft_system
)

# 设置包含目录
target_include_directories(market_data_example
    PRIVATE
        ${CMAKE_SOURCE_DIR}/include
)

# 安装示例程序
install(TARGETS market_data_example
    RUNTIME DESTINATION bin/examples
)

# 复制配置文件到构建目录
file(MAKE_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/examples/config)
file(MAKE_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/data/market_data)